var mailerService = require("../services/mailerService");

exports.mailerPage =  function  (req, res) { // 发送邮件页面
	res.render("sendMailer");
};

exports.mailerSend = function(req, res){
	var qdata = req.body;
	//console.log(qdata);
	qdata.senderEmail = qdata.sender+"@"+qdata.senderHoster+".com";
	mailerService.sendMail(qdata, function(back){
		res.end(back);
	});

	
};